package interfaces;

class StringProcess implements Process {
    @Override
    public String process(Object obj) {
        char[] chars = ((String) obj).toCharArray();
        int l = chars.length;
        int m = l >> 1;
        for(int i = 0; i < m; i ++) {
            char t = chars[i];
            chars[i] = chars[l - i - 1];
            chars[l - i - 1] = t;
        }
        return new String(chars);
    }
}

public class Test2 {
    public static void main(String[] args) {
        Test.process(new StringProcess(), "abcdefg123");
    }
}
